Avoiding syslog-ng noise from cron jobs [closed]

Posted by Eyal Rozenberg on Server Fault See other posts from Server Fault or by Eyal Rozenberg
Published on 2012-09-27T20:26:35Z Indexed on 2012/09/27 21:39 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

Possible Duplicate:
How can I prevent cron from filling up my syslog?

On my small Debian squeeze web server, I have syslog-ng installed. Generally, my logs are nice and quiet, with nice

-- MARK -- 

lines. My syslog, however, is littered with this

Sep 23 23:09:01 bookchin /USR/SBIN/CRON[24885]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete > /dev/null)
Sep 23 23:09:01 bookchin /USR/SBIN/CRON[24886]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm > /dev/null)
Sep 23 23:17:01 bookchin /USR/SBIN/CRON[24910]: (root) CMD (   cd / && run-parts /etc/cron.hourly)

kind of garbage. What's the clean way to avoid it?

© Server Fault or respective owner

Related posts about cron

Related posts about syslog